import lxml.html
import util, handler

class DwsHandler(handler.GenericHandler):
    service_name = 'Dws'    

    def getNewEntries(self):
        # GET web site html
        html = util.httpget('http://dws.informatik.uni-mannheim.de/en/thesis/')
        # find all divs with class="news-list-item"
        tree = lxml.html.fromstring(html)
        return [lxml.html.tostring(entry) for entry in tree.cssselect('div.news-list-item')]


